package com.hs.sentinelr.handler;

import org.aspectj.lang.ProceedingJoinPoint;

import javax.servlet.http.HttpServletRequest;

/**
 * key 生成策略
 */
public interface KeyResolver {

    /**
     * 限流规则
     *
     * @param request
     * @param pjp
     * @return
     */
    String resolve(HttpServletRequest request, ProceedingJoinPoint pjp);
}
